
export default {
  group: "Antd",
  componentName: 'ACamera',
  title: '拍照',
  category: '数据展示',
  configure: {
    supports: {
      events: [
        {
          name: 'onClick',
          description:
            "onClick(event,${extParams}){\n// 点击按钮时的回调\nconsole.log('onClick', event);}",
          propType: 'func',
        },
      ],
      style: true,
    },
    props: [
      {
        name: 'height',
        title: {
          label: '高度',
          tip: '高度',
        },
        // propType: {
        //   type: 'oneOfType',
        //   value: ['node', 'string'],
        // },
        setter: ['SlotSetter', 'StringSetter', 'VariableSetter'],
      }, {
        name: 'width',
        title: {
          label: '宽度',
          tip: '宽度',
        },
        // propType: {
        //   type: 'oneOfType',
        //   value: ['node', 'string'],
        // },
        setter: ['SlotSetter', 'StringSetter', 'VariableSetter'],
      },
    ],
  },
  snippets: [
    {
      title: '拍照',
      screenshot: "./__scrrenshots__/camera.jpg",
      schema: {
        componentName: "ACamera",
        props: {}
      }
    }
  ]
};
